
<div class="shopnav js-navmenu nav-on-bottom style-3">
				<div class="nav-menu has-menu-3">
					<a href="<?php  echo  Yii::app()->request->baseUrl ?>/index.php?r=wap/Homepage&pid=<?php echo $pid?>" class="home">主页</a>
					

					<div class="divide">&nbsp;</div>
					<?php foreach ($menu as $one):?>
					   <?php if ($one->parentindex==0):?>
					<div class="one">
						<a class="mainmenu js-mainmenu" href="javascript:void(0);"> <i class="arrow-weixin"></i> <?php echo $one->name?>
						</a>
						<div class="submenu js-submenu" style="margin-bottom: 20px">
							<span class="arrow before-arrow"></span> <span class="arrow after-arrow"></span>
							<ul>
								<?php foreach ($menu as $submenu):?>
								<?php if ($submenu->parentindex==$one->id):?>
								<li class="line-divide"></li>
								<li><a href="<?php echo  $submenu->url?>"> <?php echo $submenu->name?></a></li>
								<?php endif;?>
								<?php endforeach;?>
								
							</ul>
						</div>
					</div>
					<div class="divide">&nbsp;</div>
					<?php endif;?>

					<?php endforeach;?>

				</div>
			</div>